<template>
  <div class="tem_right">
    <router-view></router-view>
    <el-pagination
      @size-change="handleSizeChange"
      @current-change="handleCurrentChange"
      :current-page="1"
      :page-sizes="[10, 20, 30, 40]"
      :page-size="10"
      layout="total, sizes, prev, pager, next, jumper"
      :total="10000"
    >
    </el-pagination>
  </div>
</template>

<script>
export default {
  methods: {
    handleSizeChange(val) {
      console.log(`每页 ${val} 条`);
    },
    handleCurrentChange(val) {
      console.log(`当前页: ${val}`);
    }
  }
};
</script>

<style>
.tem_right {
  position: absolute;
  height: calc(100vh - 70px);
  top: 70px;
  left: 250px;
  right: 0;
  bottom: 0;
  background-color: #efefef;
  padding: 15px 10px;
  box-sizing: border-box;
}
</style>